﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="OpenManageRoleBrandMappingV2.ascx.vb" Inherits="WebForm_ManageRole_OpenManageRoleBrandMappingV2" %>


<asp:Panel ID="panel1" runat="server" HorizontalAlign="Center" BackColor="white" BorderWidth="1" Style="cursor: move;
    display: none" Width="650" Height="550" ScrollBars="Auto">
    <br />
      <table width="95%">
      <tr>
      <td>
      <fieldset align="left">
            <legend>
                    <asp:Label ID="lblTitle" runat="server" Text="<%$ Resources:Title %>" SkinID="title"></asp:Label>
            </legend>
        <table width="100%">
            <tr align="left">
                <td>
                <asp:Label ID="lblViewPoint" runat="server" Text="<%$ Resources:ViewPoint %>"></asp:Label>
                <asp:DropDownList ID="ddlViewPoint" runat="server"></asp:DropDownList>
                <asp:Button ID="btQuery" Text="Query"  ValidationGroup="vViewPoint" runat="server"  />
                <asp:RequiredFieldValidator ID="rfvViewPoint" runat="server" meta:resourcekey="rfvViewPoint" SetFocusOnError="true" ValidationGroup="vViewPoint" ControlToValidate="ddlViewPoint" Display="None"></asp:RequiredFieldValidator>
                <asp:ValidationSummary ID="vs2" ValidationGroup="vViewPoint" runat="server" ShowMessageBox="true" ShowSummary="false"  />
                </td>
          </tr>
          <tr align="left">
              <td>
                  <ReportSearchOption:HierarchyControl ID="ProductHierarchyControl1" runat="server"  />
              </td>
         </tr>
        <tr>
            <td align="right">
            <asp:Button ID="btSubmit" runat="server"  meta:resourcekey="btSubmit" Visible="false" />

            </td>
        </tr>
        </table> 
      </fieldset>
      </td>
      </tr>
      </table>
      <br/>
        <table width="95%">
        <tr>
            <td>
                <My:MyGridView ID="gv" runat="server" AllowHoverEffect="True"
                    AllowHoverSelect="True" TotalRowCount="0" AutoGenerateColumns="False"
                    SkinID="pager" DataKeyNames="ViewPoint,Hierarchy"  >
                    <Columns>
                       <asp:BoundField DataField="ViewPoint" HeaderText="<%$ Resources:ViewPoint %>"
                            />
                            
                        <asp:BoundField DataField="LevelName" HeaderText="<%$ Resources:LevelName %>"
                            SortExpression="LevelName" />
                            
                        <asp:BoundField DataField="HierarchyText" HeaderText="<%$ Resources:HierarchyText %>"
                            SortExpression="HierarchyText" />
                                         
                        <asp:TemplateField HeaderText="<%$ Resources:CanAccess %>">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkSelect" runat="server" Checked='<%# BooleanConverter(Eval("CanAccess")) %>'
                                    OnCheckedChanged="chkSelect_CheckedChanged" AutoPostBack="True" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                </My:MyGridView>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnOK" Visible="false" runat="server" Text="<%$ Resources:OK %>" />
                <asp:Button ID="btnCancel" runat="server" Text="<%$ Resources:Cancel %>" />
            </td>
        </tr>
    </table>
</asp:Panel>

<asp:Button ID="btnDummy" runat="server" SkinID="null" Style="display: none" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server"  CancelControlID="btnCancel"
    PopupControlID="panel1" PopupDragHandleControlID="panel1" TargetControlID="btnDummy" />
